/**
 * @author xinjie.txt
 * @time: 2020年7月6日 下午3:25:38
 */
package com.jiepu.daily.corejava.day0706;

/**
 * @Description:
 * @author xinjie.txt
 */
public class Teacher {

	public int id; // 属性【工号】
	public String name; // 属性【姓名】
	public int age; // 属性【年龄】
	public String gender; // 属性【性别】
	public double salary; // 属性【工资】
/**
 * 
 * @Description: 
 */
	public void work() {
		System.out.println("defout");
	}
/**
 * 
 * @Description: 
 * @param teacher
 */
	public void introduce(Teacher teacher) {
		System.out.println(
				"工号: " + teacher.id + "\t姓名: " + teacher.name + "\t年龄: " + teacher.age + "\t工资： " + teacher.salary);
	}
/**
 * 
 * @Description: 全参构造器
 * @param teacher
 * @param id
 * @param name
 * @param age
 * @param gender
 * @param salary
 */
	public void initTeacher(Teacher teacher, int id, String name, int age, String gender, double salary) {
		teacher.id = id;
		teacher.name = name;
		teacher.age = age;
		teacher.gender = gender;
		teacher.salary=salary;
	}
}
